package com.codemart.lanze.common.base.controller;

import javax.servlet.http.HttpSession;

import com.codemart.lanze.core.utils.HttpKit;

public class AdminBaseController extends BaseController {

	public static final String PREFIX = "back/admin";

	protected HttpSession getSession() {
		return HttpKit.getRequest().getSession();
	}

	protected Object getSessionAttr(String sessionKey) {
		return HttpKit.getRequest().getSession().getAttribute(sessionKey);
	}

	/**
	 * 取得经过防火墙处理的Request Session
	 *
	 * @param flag
	 * @return
	 */
	protected HttpSession getSession(Boolean flag) {
		return HttpKit.getRequest().getSession(flag);
	}

}